﻿define(function (require, exports, module) {

    var sTpl = require("./index.html");
    require("./index.css");


    var vueComponent = Vue.extend({
        template: sTpl,
        props: ["title"],
        data: function () {
            return {
                hasSide: true
            }
        },
        methods: {
            hasSideToggle: function () {
                this.hasSide = !this.hasSide;
                this.$emit('has-side-toggle');
            },
            toggleHasTop: function () {
                this.$emit('toggle-has-top');
            },
        }
    });


    Vue.component('m-header', vueComponent); //都全局注册 同时exports

    module.exports = vueComponent;
});